const RecomBookModel = require('../db/models/recomBook');

class RecomCourseService {
    //获取推荐书本数据
    async getRecomBookData () {
        return await RecomBookModel.findAll({
            where: { status: 1 },
            attributes: {
                exclude: ['id', 'bid', 'href', 'createdAt', 'updatedAt']
            }
        });
    }
}

module.exports = new RecomCourseService();